package com.pda.yuanjing.pages.kccx;

import com.pda.yuanjing.beanout.KCTJBeanOut;
import com.public_module.basemvp.present.BasePresenter;

import java.util.List;

public class PagePresent extends BasePresenter<PageModel, PageView> implements PageModel.CallBack {
    public void query(String id1,String id2,String id3,String name) {
        view.showProgress();
        model.query( id1,id2,id3,name,this);
    }

    public void initBase(String pid,String jieDianName){
        view.showProgress();
        model.downLoadInfo1(pid,jieDianName);
        model.downLoadInfo2(pid,jieDianName);
        view.hideProgress();
    }

    @Override
    public void ontip(String str) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tip(str);
    }

    @Override
    public void ontipS(List<KCTJBeanOut.DataBean> list) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tipS(list);
    }
}


